import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;

public class SocketTest {
	public static void main(String[] args) {
		String hex = "7d1001866154021878550100000027015746313531382d32305631304c48474350313639374338303330313434000f60011456313230830f7d";
		byte[] buffc = new byte[1024];
		try {
			Socket socket=new Socket("90.0.12.149", 10001);
			InputStream in = socket.getInputStream();
			OutputStream out = socket.getOutputStream();
			out.write(HexUtil.hexToBytes(hex));
			
			int len = in.read(buffc);
			
			System.out.println(HexUtil.byteToHexStr(buffc));
			in.close();
			out.close();
			socket.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally {
			
		}
	}
}
